/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package runebound.ui.heroe;

import runebound.modelo.heores.Heroe;

/**
 *
 * @author Miguel (alakat@gmail.com)
 */
public class RBEstadisticasHeroePanel extends javax.swing.JPanel {

    /**
     * Creates new form RBEstadisticasHeroePanel
     */
    public RBEstadisticasHeroePanel() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        magiaLabel = new javax.swing.JLabel();
        fisicoLabel = new javax.swing.JLabel();
        menteLabel = new javax.swing.JLabel();
        fisicoExplicacionLabel = new javax.swing.JLabel();
        menteExplicacionLabel = new javax.swing.JLabel();
        magiaExplicacionLabel = new javax.swing.JLabel();

        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setBackground(new java.awt.Color(51, 255, 51));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel1.setText("Magia: ");
        add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 80, 20));

        jLabel2.setBackground(new java.awt.Color(51, 255, 51));
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel2.setText("Físico: ");
        add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 80, 20));

        jLabel3.setBackground(new java.awt.Color(51, 255, 51));
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel3.setText("Mente: ");
        add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 80, 20));

        magiaLabel.setBackground(new java.awt.Color(51, 255, 51));
        magiaLabel.setText("1/2");
        add(magiaLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 70, 30, 20));

        fisicoLabel.setBackground(new java.awt.Color(51, 255, 51));
        fisicoLabel.setText("5/6");
        fisicoLabel.setToolTipText("");
        add(fisicoLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 10, 30, 20));

        menteLabel.setBackground(new java.awt.Color(51, 255, 51));
        menteLabel.setText("5/2");
        add(menteLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 40, 30, 20));

        fisicoExplicacionLabel.setBackground(new java.awt.Color(51, 255, 51));
        fisicoExplicacionLabel.setFont(new java.awt.Font("Lucida Grande", 2, 8)); // NOI18N
        fisicoExplicacionLabel.setText("1+(4)+(5)/1+2");
        fisicoExplicacionLabel.setToolTipText("");
        add(fisicoExplicacionLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 10, 130, 20));

        menteExplicacionLabel.setBackground(new java.awt.Color(51, 255, 51));
        menteExplicacionLabel.setFont(new java.awt.Font("Lucida Grande", 2, 8)); // NOI18N
        menteExplicacionLabel.setText("5/2");
        add(menteExplicacionLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 40, 130, 20));

        magiaExplicacionLabel.setBackground(new java.awt.Color(51, 255, 51));
        magiaExplicacionLabel.setFont(new java.awt.Font("Lucida Grande", 2, 8)); // NOI18N
        magiaExplicacionLabel.setText("1/2");
        add(magiaExplicacionLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 70, 130, 20));
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel fisicoExplicacionLabel;
    private javax.swing.JLabel fisicoLabel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel magiaExplicacionLabel;
    private javax.swing.JLabel magiaLabel;
    private javax.swing.JLabel menteExplicacionLabel;
    private javax.swing.JLabel menteLabel;
    // End of variables declaration//GEN-END:variables

    /**
     * Inicializa la interfaz con la información del heroe activo
     * @param h 
     */
    public void activeHeroe(Heroe h) {
        this.fisicoLabel.setText(""+h.getValorCombateFisico());
        this.menteLabel.setText(""+h.getValorCombateDistancia());
        this.magiaLabel.setText(""+h.getValorCombateMagia());
        
    }
}
